package SOSO;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class MobileCard {
    private String cardNumber;//卡号
    private String userName; //姓名
    private String passWord; //密码
    private ServicePackage serPackage;  //所属套餐
    private double consumAmount;  //当月消费金额
    private double money; //账户余额
    private int realTalkTime; //实际通话
    private int realSMSCount;//实际发送短信数
    private double realFlow; //实际上网

    public MobileCard() {
    }

    public MobileCard(String cardNumber, String userName, String passWord,
                      ServicePackage serPackage, double consumAmount, double money) {
        this.cardNumber = cardNumber;
        this.userName = userName;
        this.passWord = passWord;
        this.serPackage = serPackage;
        this.consumAmount = consumAmount;
        this.money = money;
    }

    public void showMeg(){
        System.out.println("卡号："+cardNumber+"\t姓名："+userName+"\t当前余额："+money);
        serPackage.showInfo();
    }
}
